/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.scene.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.scene.domain.Project;
import com.koron.scene.domain.ProjectEnterpriseVo;
import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

import java.util.List;

public interface ProjectService {
    MessageBean<?> add(StaffBean user, MultipartFile[] files, String name, String corpCode, String corpName,
                       String projectType, String projectLeaderCode, String projectLeaderName,
                       String establishDateStr, Integer state, String description, String projectEnterpriseListStr);

    MessageBean<?> update(StaffBean user, MultipartFile[] files, String projectId, String name, String corpCode, String corpName,
                          String projectType, String projectLeaderCode, String projectLeaderName,
                          String establishDateStr, Integer state, String description, String projectEnterpriseListStr,
                          String keepPathListStr, String deletePathListStr, String keepPrePathListStr, String deletePrePathListStr);

    MessageBean<?> list(StaffBean user, String name, String projectType, Integer state, String corpCode, String projectId, String enterpriseId,String keyword,
                        Integer page, Integer pageSize);

    MessageBean<?> delete(StaffBean user, String projectId);

    MessageBean<?> deleteEnterprise(StaffBean user, String projectId, String enterpriseId);

    MessageBean<?> projectEnterpriseList(StaffBean user, String enterpriseName, String projectName, String corpCode,String keyword,
                                         Integer page, Integer pageSize);

    MessageBean<?> detail(StaffBean user, String projectId);

    MessageBean<?> importExcel(StaffBean user, MultipartFile file);

    List<Project> exportList(StaffBean user, String corpCode, String name, String projectType, Integer state, String projectId, String enterpriseId);

    List<ProjectEnterpriseVo> exportProjectEnterpriseList(StaffBean user, String enterpriseName, String projectName, String corpCode);

    MessageBean<?> getAll(StaffBean user);

    MessageBean<?> homePageProjectList(StaffBean user, String name, String projectType, Integer state, String corpCode, String projectId, String enterpriseId, Integer page, Integer pageSize);

}
